<!DOCTYPE html>
<html>
<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes" />
    <title>汽车租赁管理系统</title>
    <meta name="description" content="汽车租赁管理系统">
    <meta name="keywords" content="汽车租赁管理系统">
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 引入样式 -->
    <link rel="stylesheet" href="plugins/elementui/index.css">
    <link rel="stylesheet" href="plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="css/style.css">
    <style type="text/css">
    .el-main{
        position: relative;
        top: 70px;
        bottom: 0px;
        left: 50px;
        right: 10px;
        padding: 0;
    }
    </style>
</head>
<body class="hold-transition skin-purple sidebar-mini">
    <div id="app">
        <el-container>
            <el-header  class="main-header" style="height:90px;">
                <nav class="navbar navbar-static-top" :class=''>
                    <!-- Logo -->
                    <a href="#" class="logo" style="text-align:center">
                        <span class="logo-lg"><h2 style="color: white;">汽车租赁后台系统</h2></span>
                    </a>
                    <div class="right-menu">
                        <el-dropdown class="avatar-container right-menu-item" trigger="click">
                            <div class="avatar-wrapper">
                                <img src="img/tou.jpg" class="user-avatar">
                                {{name}}
                            </div>
                            <el-dropdown-menu slot="dropdown">
                                <el-dropdown-item divided>
                                    <span style="display:block;">修改密码</span>
                                </el-dropdown-item>
                                <el-dropdown-item divided>
                                    <a href="/logout">
                                        <span style="display:block;">退出</span>
                                    </a>
                                    </el-dropdown-item>
                            </el-dropdown-menu>
                        </el-dropdown>
                    </div>
                </nav>
            </el-header>
            <el-container>
                <el-aside width="200px" height="1000px">
                    <el-menu>
                        <el-menu-item index="1">
                            <i class="el-icon-menu"></i>
                            <span><a href="pages/report_business.html" target="right">后台首页</a></span>
                        </el-menu-item>
                        <el-submenu v-for="menu in menuList" :index="menu.path">
                            <template slot="title">
                                <i class="fa" :class="menu.icon"></i>
                                {{menu.title}}
                            </template>
                            <template v-for="child in menu.children">
                                <el-menu-item :index="child.path">
                                    <a :href="child.linkUrl" target="right">{{child.title}}</a>
                                </el-menu-item>
                            </template>
                        </el-submenu>

                    </el-menu>
                </el-aside>
                <el-container>
                    <iframe name="right"  src="pages/report_business.html" width="100%" height="1000px" frameborder="0"></iframe>
                </el-container>
            </el-container>
        </el-container>
    </div>
</body>
<!-- 引入组件库 -->
<script src="js/vue.js"></script>
<script src="plugins/elementui/index.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script>
    new Vue({
        el: '#app',
        data:{
            menuList:[

                {
                    "path": "2",
                    "title": "店铺|送车点",
                    "icon":" fa-home",
                    "children": [
                        {
                            "path": "/2-1",
                            "title": "店铺送车点列表",
                            "linkUrl":"pages/shop.html",
                            "children":[]
                        },
                    ]
                },
                {
                    "path": "3",
                    "title": "会员管理",
                    "icon":"fa-user-circle",
                    "children": [
                        {
                            "path": "/3-1",
                            "title": "会员信息管理",
                            "linkUrl":"pages/member.html",
                            "children":[]
                        },
                        {
                            "path": "/3-2",
                            "title": "会员统计",
                            "linkUrl":"pages/member-charts.html",
                            "children":[]
                        },
                    ]
                },
                {
                    "path": "4",
                    "title": "汽车品牌",
                    "icon":"fa-car",
                    "children": [
                        {
                            "path": "/4-1",
                            "title": "汽车品牌列表",
                            "linkUrl":"pages/carbrand.html",
                            "children":[]
                        },
                    ]
                },
                {
                    "path": "5",
                    "title": "汽车信息",
                    "icon":"fa-car",
                    "children": [
                        {
                            "path": "/5-1",
                            "title": "汽车信息列表",
                            "linkUrl":"pages/car.html",
                            "children":[]
                        },
                    ]
                },
                {
                    "path": "6",
                    "title": "发布租车",
                    "icon":"fa-plus",
                    "children": [
                        {
                            "path": "/6-1",
                            "title": "发布租车列表",
                            "linkUrl":"pages/openRend.html",
                            "children":[]
                        },
                    ]
                },
                // {
                //     "path": "7",
                //     "title": "预约管理",
                //     "icon":"fa-tty",
                //     "children": [
                //
                //         {
                //             "path": "/7-1",
                //             "title": "预约条件设置",
                //             "linkUrl":"pages/ordersetting.html",
                //             "children":[]
                //         },
                //     ]
                // },
                {
                    "path": "8",
                    "title": "订单管理",
                    "icon":"fa-shopping-cart",
                    "children":[
                        {
                            "path": "/8-1",
                            "title": "订单管理列表",
                            "linkUrl":"pages/orders.html",
                            "children":[]
                        },
                    ]
                },
                {
                    "path": "9",
                    "title": "还车管理",
                    "icon":"fa-shopping-cart",
                    "children":[
                        {
                            "path": "/9-1",
                            "title": "还车管理列表",
                            "linkUrl":"pages/returnCar.html",
                            "children":[]
                        },
                    ]
                },
                {
                    "path": "10",     //菜单项所对应的路由路径
                    "title": "统计分析",     //菜单项名称
                    "icon":"fa-bar-chart-o",
                    "children":[//是否有子菜单，若没有，则为[]
                        // {
                        //     "path": "/9-1",
                        //     "title": "套餐统计",
                        //     "linkUrl":"pages/setmeal-charts.html",
                        //     "children":[]
                        // },

                        {
                            "path": "/10-1",
                            "title": "运营数据",
                            "linkUrl":"pages/report_business.html",
                            "children":[]
                        }
                    ]
                }
            ]
        }
    });
    $(function() {
            var wd = 160;
            $(".el-main").css('width', $('body').width() - wd + 'px');
    });
</script>
</html>
